import { createRoot } from "react-dom/client";
import "./index.css";
import { RouterProvider } from "react-router-dom";
import routes from "./router/index.jsx";
import { Provider as StoreProvider } from "react-redux";
import store, { persistor } from "./store/index.js";
import { PersistGate } from "redux-persist/integration/react";
createRoot(document.getElementById("root")).render(
  <StoreProvider store={store}>
    <PersistGate loading={null} persistor={persistor}>
      <RouterProvider router={routes}></RouterProvider>
    </PersistGate>
  </StoreProvider>
);
